package com.hrs.core.mapper;

import com.hrs.enity.db.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hrs.enity.vo.DepartmentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
* @author 纱雾休比酱
* @description 针对表【t_department(部门表)】的数据库操作Mapper
* @createDate 2023-01-12 22:14:50
* @Entity com.hrs.enity.db.Department
*/
@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    List<DepartmentVo> listAll();

    DepartmentVo selectByDeptId(@Param("deptId") Integer deptId);

    Integer countSubDepartment(@Param("deptId") Integer deptId);

    Set<Integer> selectDeptIds(@Param("deptI") Integer deptI,@Param("deptII") Integer deptII);
}




